<template>
  <div id="yoso">
    <div id="main">
      <div id="commodity">
        <img :src="commodity.c_photopath" width="250px">
        <div><span>{{commodity.c_name}}</span></div>
        <div><span>{{commodity.c_describe}}</span></div>
        <div><span>价格:{{commodity.c_price}}</span></div>
      </div>
      <div id="detail">

      </div>
    </div>
    <div>

    </div>
  </div>


</template>

<script>
  export default {
    name: "CommodityDetail",
    data(){
      return{
        login:false,
        count:'',
        admin:{},
        commodity:{}
      }
    },
    methods:{

    },
    created() {
      this.$axios.get('/CommodityServlet/findByIdCommodity?c_id='+this.$route.params.id)
        .then(resp=>{
          this.commodity = resp.data;
          this.admin= this.$store.state.admin;
        })
    }
  }
</script>

<style scoped>
  #commodity{
    display: inline-block;
    width: 200px;
    border: 1px solid red;
  }
</style>

